
import { apiRequestPost,apiRequestExport,apiRequestImport } from '../globalApi.js'

/**
 * 查询标签列表   
 */
export const apiQueryTag =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/queryTag', params)
}

//保存标签
export const apiSaveTag =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/saveTag', params)
}

//查询标签
export const apiQueryTagTree =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/queryTagTree', params)
}

//启用标签
export const apiEnableTag =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/enableTag', params)
}

//禁用标签
export const apiDisableTag =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/disableTag', params)
}

//删除标签
export const apiDeleteTag =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/deleteTag', params)
}

//查看标签详情
export const apiGetTagById =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTag/getTagById', params)
}

//查询标签组列表
export const apiQueryTagGroupValid =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTaggroup/queryTagGroupValid', params)
}

//删除标签组
export const apiDeleteDtTaggroup =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTaggroup/deleteDtTaggroup', params)
}

//保存标签组
export const apiSaveDtTaggroup =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTaggroup/saveDtTaggroup', params)
}

//查询标签组列表--分页
export const apiQueryDtTaggroup =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTaggroup/queryDtTaggroup', params)
}

//查询标签组列表
// export const apiQueryTagGroupValid =(params)=>{
//     return  apiRequestPost('/gm/GMDTDocTaggroup/queryTagGroupValid', params)
// }


//模板管理

//分页查询模板列表
export const apiQuery =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/query', params)
}

//删除模板版本。
export const apiDelete =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/delete', params)
}

//修改模板目录
export const apiChangeCategory =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/changeCategory', params)
}

//保存模板
export const apiSave =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/save', params)
}

//查看模板的版本记录。
export const apiListVersions =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/listVersions', params)
}

//查看模板版本详情。
export const apiGetTmplById =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/getTmplById', params)
}

//获取文档编辑的地址
export const apiEditTmpl =(params)=>{
    return  apiRequestPost('/gm/GMDTDocTmpl/editTmpl', params)
}

//修改上级目录。
export const apiChangeParent =(params)=>{
    return  apiRequestPost('/gm/GMDTCategory/changeParent', params)
}

//删除模板目录。
export const apiDeleteCate =(params)=>{
    return  apiRequestPost('/gm/GMDTCategory/deleteCate', params)
}

//查询模板目录树。
export const apiQueryTree =(params)=>{
    return  apiRequestPost('/gm/GMDTCategory/queryTree', params)
}

//保存子目录。
export const apiSaveCate =(params)=>{
    return  apiRequestPost('/gm/GMDTCategory/saveCate', params)
}


//文件操作
export const apiUpload =(params)=>{
    return  apiRequestImport('/gm/common/file/upload', params)
}







